package org.jeecg.modules.util;

import java.math.BigDecimal;
import java.text.NumberFormat;

public class DepartCode {

	//一线组织
	public static final String YIXIAN_DANWEI = "A01A01A01";//一线单位
	public static final String YANYUAN_SHEQU = "A01A01A01A01";//燕园社区
	public static final String YANYUAN_YIYUAN = "A01A01A01A02";//燕园医院
	public static final String SHENYUAN_SHEQU = "A01A01A01A03";//申园社区
	public static final String SHENYUAN_YIYUAN = "A01A01A01A04";//申园医院
	public static final String YUEYUAN_SHEQU = "A01A01A01A05";//粤园社区
	public static final String YUEYUAN_YIYUAN = "A01A01A01A06";//粤园医院
	public static final String SHUYUAN_SHEQU = "A01A01A01A11";//蜀园社区
	public static final String SHUYUAN_YIYUAN = "A01A01A01A12";//蜀园医院
	public static final String WUYUAN_SHEQU = "A01A01A01A07";//吴园社区
	public static final String WUYUAN_YIYUAN = "A01A01A01A08";//吴园医院
	public static final String CHUYUAN_SHEQU = "A01A01A01A09";//楚园社区
	public static final String CHUYUAN_YIYUAN = "A01A01A01A10";//楚园医院
	public static final String YUANQU_HEJI = "A01A01A01A14";//园区合计
	//本部组织
	public static final String SHIYEQUN_BENBU = "A01A01A02";//养康本部
	public static final String SHIYEQUN = "A01A01A02A01";//事业群
	public static final String SHICHANGYINGXIAO = "A01A01A02A02";//市场营销部
	public static final String FUWUGUANLI = "A01A01A02A03";//服务管理部
	public static final String CANYINGUANLI = "A01A01A02A04";//餐饮管理部
	public static final String YUNXINGBAOZHANG = "A01A01A02A05";//运行保障部
	public static final String ZHAOHUZHUANYE = "A01A01A02A06";//照护专业部
	public static final String YIYUANFAZHAN_GUANLI = "A01A01A02A07";//医院发展与管理部
	public static final String CANWUGUANLI = "A01A01A02A08";//财务管理部
	public static final String JINGYINGGUANLI = "A01A01A02A09";//经营管理部
	public static final String XINGZHENGBANGONGSHI = "A01A01A02A10";//行政办公室
	public static final String RENLIZIYUAN = "A01A01A02A11";//人力资源部
	public static final String YEWUFAZHAN = "A01A01A02A12";//养老业务发展部
	
	
	public static String changeFormate(double data) {
		NumberFormat num = NumberFormat.getPercentInstance();
		num.setMaximumIntegerDigits(3);
		num.setMaximumFractionDigits(0);
		return num.format(data);
	}
	
	public static Double formateForDouble(double data) {
		BigDecimal bg = new BigDecimal(data);
		double f1 = bg.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
		return f1;
	}
}
